helpers
Class UserDevicesResultsHelper

java.lang.Object
  extended by helpers.UserDevicesResultsHelper

public class UserDevicesResultsHelper
extends java.lang.Object

Helper class to a extract data from the UserDevicesResults object


Field Summary
(package private)  Response response
           
 
Constructor Summary
UserDevicesResultsHelper(Response response)
          Initialize with the response to be parsed
 
Method Summary
 java.lang.String getDevice()
           
 java.lang.String getError()
           
 boolean hasDevice()
           
 boolean hasFailure()
           
 boolean userExists()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

response

Response response
Constructor Detail

UserDevicesResultsHelper

public UserDevicesResultsHelper(Response response)
Initialize with the response to be parsed

Parameters:
response -
Method Detail

userExists

public boolean userExists()
Returns:
returns true if the queried user exists, false if it does not exist

hasFailure

public boolean hasFailure()
Returns:
returns true if the response contains a failure object

hasDevice

public boolean hasDevice()
Returns:
returns true if the response contains a DeviceName indicating that the device has a a logged in user.

getDevice

public java.lang.String getDevice()
Returns:
returns the devicename of the device the queried user is logged into

getError

public java.lang.String getError()
Returns:
returns error information if there is a failure